<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmRecoverPasswordviaAnswer" >
        <!-- Băt đầu Recover Password Answer -->
        <p:dialog header="Recover Password via Answer"
                  id="dlgRecoverViaAnswer"
                  widgetVar="wgRecoverViaAnswer"
                  closable="false"
                  draggable="true"
                  modal="true"
                  showEffect="clip"
                  hideEffect="clip"
                  resizable="false">
            <h:panelGrid id="pnRecoverViaAnswer"  columns="2" cellspacing="5" >
                <h:outputLabel for="ipUsername" value="Username : *" />
                <p:inputText id="ipUsername" value="#{userBean.username}" required="true" />

                <h:outputLabel for="ipAnswer" value="Answer : *" />
                <p:inputText id="ipAnswer" value="#{userBean.answer}" required="true" requiredMessage="not null" />
             
            </h:panelGrid>
               <f:facet name="footer">
                 <p:commandButton value="Sumbit"
                                 actionListener="#{userBean.RecoverPassword}"
                                 update=":growl,:frmSetPassword:dlgSetPassword"
                                 oncomplete="LoginRequest(xhr, status, args)"
                                 />
                <p:commandButton
                    value="Cancel"
                    onclick="wgRecoverViaAnswer.hide();wgLogin.show();"
                    />
            </f:facet>
        </p:dialog>
    </h:form>
</html>
